import { SetMetadata } from '@nestjs/common'
import { CHECK_PERMISSION, IS_PUBLIC_KEY } from 'config'
export const ResponseMsg = (message: string) =>
  SetMetadata('prefixMsg', message)

export const Public = () => SetMetadata(IS_PUBLIC_KEY, true)

export const CheckPermission = () => SetMetadata(CHECK_PERMISSION, true)
